package com.zhf.tests;

import com.zhf.bean.Grade;
import com.zhf.service.GradeService;
import org.junit.Test;

/**
 * @Author: ZhaoHuanfeng
 * @Date: 2020/10/24 22:32
 */
public class GradeTest {
    @Test
    public void addGradeTest(){
        GradeService gradeService = new GradeService();
        boolean b = gradeService.addGrade(new Grade("3", "二年级", "张老师", "有些人！巴拉巴拉……", 22));
        System.out.println(b);
    }

    @Test
    public void updateGradeTest(){
        GradeService gradeService = new GradeService();
        boolean b = gradeService.updateGrade(new Grade("一班", "二年级", "马老师", "芜湖！起飞~~~", 23));
        System.out.println(b);
    }

    @Test
    public void getGradeTest(){
        GradeService gradeService = new GradeService();
        Grade grade = gradeService.getGrade("1");
        System.out.println(grade);
    }

    @Test
    public void delGrade(){
        GradeService gradeService = new GradeService();
        boolean b = gradeService.delGrade("1");
        System.out.println(b);
    }
}

